﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWeb.Business;
using MyWeb.Common;
namespace MyWeb.Module.News
{
    public partial class GrNews : System.Web.UI.Page
    {
        string Id = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.RouteData.Values["Id"] != null)
            {
                Id = Page.RouteData.Values["Id"].ToString();
            }
            if (!IsPostBack)
            {
                lsvgrnews.DataSource = NewsService.News_GetMenu(""+Id+"", "", "100");
                lsvgrnews.DataBind();
            }
        }
        protected string Url(string GrId, string Id, string Name)
        {
            return "/News/" + GrId + "/" + Id + "/" + StringClass.NameToTag(Name) + ".aspx";
        }
    }
}